package algo;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

public class CheckValid {

	
	/* */
	int [] completeArray = { 1,2,3,4,5,6,7,8,9};
	private List<Integer> completeList = new ArrayList<Integer>();
	
	public CheckValid() {
		for (int i = 0; i <completeArray.length; i++) {
			completeList.add(completeArray[i]);
		}
	}
	
	public boolean isValid(List<Integer> toCheck){
		Set<Integer> compress = new HashSet<Integer>();
		compress.addAll(toCheck);
		if(compress.size() < toCheck.size()){
			return false;
		}
		else return true;
	}
	
}
